CC = g++

CFLAGS = -g -o -Wall -O0 -I./include 

SRCS = main.cpp DB_MySql.cpp CTCPServer.cpp Service.cpp TcpServerApp.cpp FormatConversion.cpp
LIBS = -L./lib -lglog -lpthread -L/usr/lib64/mysql -lmysqlclient -L/usr/local/lib -lPocoNetd -lPocoFoundationd
OBJS = $(SRCS:.cpp=.o)
	EXECUTABLE = Server
all:
	$(CC) $(CFLAGS) -o $(EXECUTABLE) $(SRCS) $(LIBS)
clean:
	rm -f $(OBJS) Server
